import CollectList from './collect-list'
import CollectListLive from './collect-list-live'

const Index = props => {
  const { playType, liveData, vodData, init } = props
  return (
    <>
      {playType === 'vod' ? <CollectList content={init ? '暂无点播收藏历史' : '数据加载中...'} data={vodData} /> : null}
      {playType === 'live' ? <CollectListLive content="暂无直播收藏历史" data={liveData} /> : null}
    </>
  )
}
export default Index
